package org.mozhu.mboot.admin.maintain.email.repository;

import org.mozhu.mboot.admin.maintain.email.entity.EmailValidation;
import org.mozhu.mboot.core.data.BaseRepository;

/**
 * 邮箱验证 - 持久化层接口
 * 
 * @author ZhangPei
 */
public interface EmailValidationRepository extends BaseRepository<EmailValidation, Long> {

	EmailValidation findByEmailAndType(String email, String type);

	EmailValidation findByCodeAndType(String code, String type);

}
